<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  

  
  <title>Dart语言简介 | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="变量声明var类似于 JavaScript 中的 var，它可以定义变量 最大的不同是 Dart 中 var 变量一旦赋值，类型便会确定，不能改变其类型 dynamic 和 ObjectObject 是 Dart 所有对象的根基类，也就是说所有类型都是 Object 的子类（包含 Function 和 NULL），所以任何类型的数据都可以赋值给 Object 声明的对象，dynamic 与 va">
<meta name="keywords" content="Dart">
<meta property="og:type" content="article">
<meta property="og:title" content="Dart语言简介">
<meta property="og:url" content="http://yoursite.com/2019/11/09/Dart语言简介/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="变量声明var类似于 JavaScript 中的 var，它可以定义变量 最大的不同是 Dart 中 var 变量一旦赋值，类型便会确定，不能改变其类型 dynamic 和 ObjectObject 是 Dart 所有对象的根基类，也就是说所有类型都是 Object 的子类（包含 Function 和 NULL），所以任何类型的数据都可以赋值给 Object 声明的对象，dynamic 与 va">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-11-10T06:24:27.332Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Dart语言简介">
<meta name="twitter:description" content="变量声明var类似于 JavaScript 中的 var，它可以定义变量 最大的不同是 Dart 中 var 变量一旦赋值，类型便会确定，不能改变其类型 dynamic 和 ObjectObject 是 Dart 所有对象的根基类，也就是说所有类型都是 Object 的子类（包含 Function 和 NULL），所以任何类型的数据都可以赋值给 Object 声明的对象，dynamic 与 va">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>
</html>
<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-Dart语言简介" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2019/11/09/Dart语言简介/" class="article-date">
  <time datetime="2019-11-09T13:20:44.000Z" itemprop="datePublished">2019-11-09</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Dart/">Dart</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Dart语言简介
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <hr>
<h2 id="变量声明"><a href="#变量声明" class="headerlink" title="变量声明"></a>变量声明</h2><h3 id="var"><a href="#var" class="headerlink" title="var"></a><code>var</code></h3><p>类似于 JavaScript 中的 <code>var</code>，它可以定义变量</p>
<p>最大的不同是 Dart 中 <code>var</code> 变量一旦赋值，类型便会确定，不能改变其类型</p>
<h3 id="dynamic-和-Object"><a href="#dynamic-和-Object" class="headerlink" title="dynamic 和 Object"></a><code>dynamic</code> 和 <code>Object</code></h3><p><code>Object</code> 是 Dart 所有对象的根基类，也就是说所有类型都是 <code>Object</code> 的子类（包含 Function 和 NULL），所以任何类型的数据都可以赋值给 <code>Object</code> 声明的对象，<code>dynamic</code> 与 <code>var</code> 一样都是关键词，声明的变量可以赋值任意对象。</p>
<h4 id="相同之处"><a href="#相同之处" class="headerlink" title="相同之处"></a>相同之处</h4><p><code>dynamic</code> 与 <code>Object</code> 声明的变量可以在后期改变赋值类型</p>
<h4 id="不同之处"><a href="#不同之处" class="headerlink" title="不同之处"></a>不同之处</h4><p><code>dynamic</code> 声明的对象编译器会提供所有可能的组合，而 <code>Object</code> 声明的对象只能使用 <code>Object</code> 的属性和方法，否则编译器会报错</p>
<h3 id="final-和-const"><a href="#final-和-const" class="headerlink" title="final 和 const"></a><code>final</code> 和 <code>const</code></h3><p>如果你从未打算更改一个变量，那么使用 <code>final</code> 或 <code>const</code>，不是 <code>var</code>，也不是一个类型。一个 <code>final</code> 变量只能被设置一次。被 <code>final</code> 或者 <code>const</code> 修饰的变量，变量类型可以省略</p>
<h4 id="不同之处-1"><a href="#不同之处-1" class="headerlink" title="不同之处"></a>不同之处</h4><p><code>const</code> 变量是一个编译时常量，<code>final</code> 变量在第一次使用时被初始化</p>
<h2 id="函数"><a href="#函数" class="headerlink" title="函数"></a>函数</h2><p>Dart 是一种真正的面向对象的语言，所以即使是函数也是对象，并且有一个类型 Function。这意味着函数可以赋值给变量或作为参数传递给其他函数，这是函数式编程的典型特征</p>
<h3 id="函数声明"><a href="#函数声明" class="headerlink" title="函数声明"></a>函数声明</h3><p>Dart 函数声明如果没有显式声明返回值类型时会默认当做 <code>dynamic</code> 处理，注意，函数返回值没有类型推断</p>
<h3 id="可选的位置参数"><a href="#可选的位置参数" class="headerlink" title="可选的位置参数"></a>可选的位置参数</h3><p>包装一组函数参数，用<code>[]</code>标记为可选的位置参数</p>
<h3 id="可选的命名参数"><a href="#可选的命名参数" class="headerlink" title="可选的命名参数"></a>可选的命名参数</h3><p>定义函数时，使用<code>{param1, param2,...}</code>，用于指定命名参数</p>
<p>调用函数时，可以传参。如果传参，就必须使用指定形参的名称。例如：<code>paramName: value</code></p>
<h2 id="异步支持"><a href="#异步支持" class="headerlink" title="异步支持"></a>异步支持</h2><p>Dart 类库有非常多的返回 <code>Future</code> 或者 <code>Stream</code> 对象的函数。这些函数被称为 <strong>异步函数</strong> ：它们只会在设置好一些耗时操作之后返回，比如像IO操作。而不是等到这个操作完成</p>
<p><code>async</code> 和 <code>await</code> 关键词支持了异步编程，允许我们写出和同步代码很像的异步代码</p>
<h3 id="Future"><a href="#Future" class="headerlink" title="Future"></a><code>Future</code></h3><p><code>Future</code> 与 JavaScript 中的 <code>Promise</code> 非常相似，表示一个异步操作的最终完成（或失败）及其结果值的表示。简单来说，它就是用于处理异步操作的，异步处理成功了就执行成功的操作，异步操作失败了就捕获错误或者停止后续操作。一个 <code>Future</code> 只会对应一个结果，要么成功，要么失败</p>
<p><code>Future</code> 的所有 API 的返回值仍然是一个 <code>Future</code> 对象，所以可以很方便的进行链式调用</p>
<h4 id="Future-then"><a href="#Future-then" class="headerlink" title="Future.then"></a><code>Future.then</code></h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">    return &quot;hi.world&quot;;</span><br><span class="line">&#125;).then((data)&#123;</span><br><span class="line">    print(data);</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>

<h4 id="Future-catchError"><a href="#Future-catchError" class="headerlink" title="Future.catchError"></a><code>Future.catchError</code></h4><p>如果异步任务发生错误，我们可以在 <code>catchError</code> 中捕获错误</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">    return &quot;hi.world&quot;;</span><br><span class="line">&#125;).then((data)&#123;</span><br><span class="line">    print(data);</span><br><span class="line">&#125;).catchError((e)&#123;</span><br><span class="line">    // 执行失败会走到这里</span><br><span class="line">    print(e);</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>

<p>不是只有 <code>catchError</code> 回调才能捕获错误，<code>then</code> 方法还有一个可选参数 <code>onError</code>，我们也可以用它来捕获异常</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">    return &quot;hi.world&quot;;</span><br><span class="line">&#125;).then((data)&#123;</span><br><span class="line">    print(data);</span><br><span class="line">&#125;, onError: (e)&#123;</span><br><span class="line">    print(e);</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure>

<h4 id="Future-whenComplete"><a href="#Future-whenComplete" class="headerlink" title="Future.whenComplete"></a><code>Future.whenComplete</code></h4><p>有些时候，我们会遇到无论异步任务执行成功或失败都需要做一些事的场景，比如在网络请求前弹出加载对话框，在请求结束后关闭对话框。</p>
<p>这种场景，有两种方法，第一种是分别在 <code>then</code> 或 <code>catch</code> 中关闭一下对话框，第二种就是使用 <code>Future</code> 的 <code>whenComplete</code> 回调</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">    return &quot;hi.world&quot;;</span><br><span class="line">&#125;).then((data)&#123;</span><br><span class="line">    // 执行成功会走到这里</span><br><span class="line">    print(data);</span><br><span class="line">&#125;, onError: (e)&#123;</span><br><span class="line">    // 执行失败会走到这里</span><br><span class="line">    print(e);</span><br><span class="line">&#125;).whenComplete(()&#123;</span><br><span class="line">    // 无论成功或失败都会走到这里</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure>

<h4 id="Future-wait"><a href="#Future-wait" class="headerlink" title="Future.wait"></a><code>Future.wait</code></h4><p>它接收一个 <code>Future</code> 数组参数，只有数组中所有 <code>Future</code> 都执行成功后，才会触发 <code>then</code> 的成功回调，只要有一个 <code>Future</code> 执行失败，就会触发错误回调。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">Future.wait([</span><br><span class="line">    // 2秒后返回结果</span><br><span class="line">    Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">        return &apos;hello&apos;;</span><br><span class="line">    &#125;),</span><br><span class="line">    // 4秒后返回结果</span><br><span class="line">    Future.delayed(new Duration(seconds:4), ()&#123;</span><br><span class="line">        return &apos; world&apos;;</span><br><span class="line">    &#125;)</span><br><span class="line">]).then((results)&#123;</span><br><span class="line">    print(result[0]+result[1]);</span><br><span class="line">&#125;).catchError((e)&#123;</span><br><span class="line">    print(e);</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>

<h3 id="Async-await"><a href="#Async-await" class="headerlink" title="Async/await"></a><code>Async/await</code></h3><h4 id="回调地狱（Callback-Hell）"><a href="#回调地狱（Callback-Hell）" class="headerlink" title="回调地狱（Callback Hell）"></a>回调地狱（Callback Hell）</h4><p>如果代码中有大量的异步逻辑，并且出现大量异步任务依赖其它异步任务的结果时，必然会出现 <code>Future.then</code> 回调中套回调情况</p>
<p>可以感受一下，如果业务逻辑中由大量异步依赖的情况，将会出现在回调里面套回调的情况，过多的嵌套会导致代码可读性下降以及出错率提高，并且非常难维护，这个问题被形象的称为回调地狱（Callback Hell）</p>
<h4 id="使用-async-await-消除-callback-hell"><a href="#使用-async-await-消除-callback-hell" class="headerlink" title="使用 async/await 消除 callback hell"></a>使用 <code>async/await</code> 消除 callback hell</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">Future&lt;String&gt; login(String userName, String pwd)&#123;</span><br><span class="line">    // 用户登录</span><br><span class="line">&#125;</span><br><span class="line">Future&lt;String&gt; getUserInfo(String id)&#123;</span><br><span class="line">    // 获取用户信息</span><br><span class="line">&#125;</span><br><span class="line">Future saveUserInfo(String userInfo)&#123;</span><br><span class="line">    // 保存用户信息</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">task() async&#123;</span><br><span class="line">    try&#123;</span><br><span class="line">        String id = await login(&apos;alice&apos;, &apos;*****&apos;);</span><br><span class="line">        String userInfo = await getUserInfo(id);</span><br><span class="line">        await saveUserInfo(userInfo);</span><br><span class="line">    &#125;catch(e)&#123;</span><br><span class="line">        // 错误处理</span><br><span class="line">        print(e);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<ul>
<li><p><code>async</code> 用来表示函数是异步的，定义的函数会返回一个 <code>Future</code> 对象，可以使用 then 方法添加回调函数</p>
</li>
<li><p><code>await</code> 后面是一个 <code>Future</code>，表示等待该异步任务完成，异步完成后才会往下走；<code>await</code> 必须出现在 <code>async</code> 函数内部</p>
</li>
<li><p>其实，无论是在 JavaScript 还是 Dart 中，<code>async/await</code> 都只是一个语法糖，编译器或解释器最终都会将其转化为一个 Promise(Future) 的调用链</p>
</li>
</ul>
<h3 id="Stream"><a href="#Stream" class="headerlink" title="Stream"></a><code>Stream</code></h3><p><code>Stream</code> 也是用于接收异步事件数据，和 <code>Future</code> 不同的是，它可以接收多个异步操作的结果（成功或失败）。也就是说，在执行异步任务时，可以通过多次触发成功或失败事件来传递结果数据或错误异常。<code>Stream</code> 常用于会多次读取数据的异步任务场景，如网络内容下载、文件读写等</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">Stream.fromFutures([</span><br><span class="line">    // 1秒后返回结果</span><br><span class="line">    Future.delayed(new Duration(seconds: 1), ()&#123;</span><br><span class="line">        return &apos;hello 1&apos;;</span><br><span class="line">    &#125;),</span><br><span class="line">    // 抛出一个异常</span><br><span class="line">    Future.delayed(new Duration(seconds: 2), ()&#123;</span><br><span class="line">        throw AssertionError(&apos;Error&apos;);</span><br><span class="line">    &#125;),</span><br><span class="line">    // 3秒后返回结果</span><br><span class="line">    Future.delayed(new Duration(seconds: 3), ()&#123;</span><br><span class="line">        return &apos;hello 3&apos;;</span><br><span class="line">    &#125;)</span><br><span class="line">]).listen((data)&#123;</span><br><span class="line">    print(data);</span><br><span class="line">&#125;, onError: (e)&#123;</span><br><span class="line">    print(e.message);</span><br><span class="line">&#125;, onDone: ()&#123;</span><br><span class="line"></span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure>

<p>上面的代码依次会输出</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">I/flutter (17666): hello 1</span><br><span class="line">I/flutter (17666): Error</span><br><span class="line">I/flutter (17666): hello 3</span><br></pre></td></tr></table></figure>
      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2019/11/09/Dart语言简介/" data-id="ck4r400os002nl0w02y5nwt72" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Dart/">Dart</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2019/11/12/Dart概述/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          Dart概述
        
      </div>
    </a>
  
  
    <a href="/2019/11/09/Flutter-路由管理/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">flutter-路由管理</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Ajax/">Ajax</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/CSS/">CSS</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/CSS3/">CSS3</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Dart/">Dart</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Flutter/">Flutter</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Git/">Git</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/HTML/">HTML</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/HTML5/">HTML5</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/JSON/">JSON</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaScript/">JavaScript</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/QT/">QT</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/React/">React</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Sass/">Sass</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/TheKnowledgeOf/">TheKnowledgeOf</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/TypeScript/">TypeScript</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/bootstrap/">bootstrap</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/jQuery/">jQuery</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Ajax/">Ajax</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/CSS/">CSS</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/CSS3/">CSS3</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Dart/">Dart</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Flutter/">Flutter</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Git/">Git</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/HTML/">HTML</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/HTML5/">HTML5</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JSON/">JSON</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Java/">Java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JavaScript/">JavaScript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Javascript/">Javascript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/QT/">QT</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/React/">React</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Sass/">Sass</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/TheKnowledgeOf/">TheKnowledgeOf</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/TypeScript/">TypeScript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/bootstrap/">bootstrap</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jQuery/">jQuery</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Ajax/" style="font-size: 12.22px;">Ajax</a> <a href="/tags/CSS/" style="font-size: 18.89px;">CSS</a> <a href="/tags/CSS3/" style="font-size: 17.78px;">CSS3</a> <a href="/tags/Dart/" style="font-size: 14.44px;">Dart</a> <a href="/tags/Flutter/" style="font-size: 16.67px;">Flutter</a> <a href="/tags/Git/" style="font-size: 12.22px;">Git</a> <a href="/tags/HTML/" style="font-size: 14.44px;">HTML</a> <a href="/tags/HTML5/" style="font-size: 12.22px;">HTML5</a> <a href="/tags/JSON/" style="font-size: 10px;">JSON</a> <a href="/tags/Java/" style="font-size: 11.11px;">Java</a> <a href="/tags/JavaScript/" style="font-size: 20px;">JavaScript</a> <a href="/tags/Javascript/" style="font-size: 10px;">Javascript</a> <a href="/tags/QT/" style="font-size: 12.22px;">QT</a> <a href="/tags/React/" style="font-size: 15.56px;">React</a> <a href="/tags/Sass/" style="font-size: 11.11px;">Sass</a> <a href="/tags/TheKnowledgeOf/" style="font-size: 11.11px;">TheKnowledgeOf</a> <a href="/tags/TypeScript/" style="font-size: 10px;">TypeScript</a> <a href="/tags/bootstrap/" style="font-size: 11.11px;">bootstrap</a> <a href="/tags/jQuery/" style="font-size: 13.33px;">jQuery</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/12/">December 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/11/">November 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/">October 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/09/">September 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/">August 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/07/">July 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">June 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/">May 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">April 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">March 2019</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2019/12/29/Flutter-MaterialApp常用属性介绍/">Flutter-MaterialApp常用属性介绍</a>
          </li>
        
          <li>
            <a href="/2019/12/29/Flutter-ListView/">Flutter-ListView</a>
          </li>
        
          <li>
            <a href="/2019/12/29/Flutter-AppBar/">Flutter-AppBar</a>
          </li>
        
          <li>
            <a href="/2019/12/29/Flutter-TabBar/">Flutter-TabBar</a>
          </li>
        
          <li>
            <a href="/2019/12/29/Flutter-按钮/">Flutter-按钮</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2019 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>